package com.cloudeasy.search.repository;

import com.cloudeasy.search.po.Post;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface PostRepository extends ElasticsearchRepository<Post, String> {
    Page<Post> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
